package com.example.example005;

public class Example005_1 {

	public static void main(String[] args) {
		
		String str ="Good Java Program !";
		
		for(int i = str.length()-1 ;i>=0; i--){
			System.out.print(str.charAt(i));
		}
		
		System.out.println("");
		System.out.println("----------------------------------------------------");
		
		char[] ary = str.toCharArray();
		for(int x =ary.length-1 ; x>=0 ; x--){
			System.out.print(ary[x]);
		}
		
		System.out.println("");
		System.out.println("----------------------------------------------------");
		
		StringBuffer buf = new StringBuffer(str);
		System.out.println(buf.reverse().toString());
		
	}

}
